package com.procurement.bidding.controller;

import com.procurement.bidding.service.SysUserService;
import com.ruoyi.common.core.web.controller.BaseController;
import com.ruoyi.common.core.web.page.TableDataInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;
import java.util.Map;


@RestController
@RequestMapping("/sysUser")
public class SysUserController extends BaseController {
    @Autowired
    private SysUserService sus;

    @PostMapping("/showByRuoYiUser")
    public TableDataInfo showByRuoYiUser(){
        return getDataTable(sus.showByRuoYiUser());
    }

    @GetMapping("showByExpertUser")
    public TableDataInfo showByExpertUser(String nickName) {
        startPage();
        List<Map<String, Object>> maps = sus.showByExpertUser(nickName);
        System.out.println(nickName+"*******************");
        return getDataTable(maps);
    }
}
